///////////////////////////////////////////////////////////////////////////////
// Project: Hoyo Client Game
//
// hy_item_logic.cpp
// Created: 2013-13-3
// Author: Like Cheng
///////////////////////////////////////////////////////////////////////////////

#include "hy_item_logic.h"

#include "hy_db/hy_db_logic.h"
#include "hy_db/hy_db_const.h"

#include "hy_net/hy_network_message.h"
#include "hy_net/hy_network_server.h"
#include "hy_net/hy_network_default.h"

#include "hy_common_func/hy_language_logic.h"

USING_NS_HY_NETWORK;
hy_item_logic* hy_item_logic_instance = NULL;

hy_item_logic::hy_item_logic()
{

}

hy_item_logic::~hy_item_logic()
{

}

hy_item_logic* hy_item_logic::instance()
{
	if( hy_item_logic_instance == NULL )
		hy_item_logic_instance = new hy_item_logic;
	return hy_item_logic_instance;
}

void hy_item_logic::purge_instance()
{
	DEL_POINTER( hy_item_logic_instance );
}

hy_item_data* hy_item_logic::get_item_by_template_id( int item_template_id )
{
	return NULL;
}
hy_player_item_data* hy_item_logic::get_item_by_player_bag_pos( int player_id, int bag, int pos )
{
	return NULL;
}

bool hy_item_logic::add_player_item( int player_id, int bag, int pos, int item_id )
{
	return true;
}


